package cn.lizemin.demo.enum02;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Demo {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
//        Season spring = Season.SPRING;

        /*System.out.println(spring);
        String seasonDesc = spring.getSeasonDesc();*/
//        System.out.println(seasonDesc);

        /*Season spring = Season.valueOf("SPRING");
        System.out.println(spring);*/

        String name = Season.SPRING.name();
        System.out.println(name);
        int ordinal = Season.SPRING.ordinal();
        int ordinal2 = Season.WINTER.ordinal();
        System.out.println(ordinal);
        System.out.println(ordinal2);


        /*Season[] values = Season.values();
        for (Season value : values) {
            System.out.println(value);
        }*/




    }

}
